package com.kanas.webak.config.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.kanas.webak.config.domain.Properties;

public interface PropertiesRepository extends JpaRepository<Properties,String> {
	
	@Query("select max(p.sortNumber) from Properties p where p.group.code=?1")
	Integer findMaxSortNumber(String groupCode);
	
	List<Properties> findByGroupCode(String groupCode);
	
}
